load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library")
load("@fbsource//tools/build_defs:glob_defs.bzl", "glob")

oncall("buck2")

rust_library(
    name = "buck2_test_api",
    srcs = glob(
        ["src/**/*.rs"],
    ),
    test_deps = [
        "fbsource//third-party/rust:assert_matches",
    ],
    deps = [
        "fbsource//third-party/rust:anyhow",
        "fbsource//third-party/rust:async-trait",
        "fbsource//third-party/rust:derive_more",
        "fbsource//third-party/rust:futures",
        "fbsource//third-party/rust:prost-types",
        "fbsource//third-party/rust:tokio",
        "fbsource//third-party/rust:tonic",
        "fbsource//third-party/rust:tower-layer",
        "fbsource//third-party/rust:tower-service",
        "fbsource//third-party/rust:tracing",
        "//buck2/app/buck2_core:buck2_core",
        "//buck2/app/buck2_downward_api:buck2_downward_api",
        "//buck2/app/buck2_downward_api_proto:buck2_downward_api_proto",
        "//buck2/app/buck2_events:buck2_events",
        "//buck2/app/buck2_grpc:buck2_grpc",
        "//buck2/app/buck2_test_proto:buck2_test_proto",
        "//buck2/gazebo/dupe:dupe",
        "//buck2/gazebo/gazebo:gazebo",
        "//buck2/host_sharing:host_sharing",
        "//common/rust/shed/sorted_vector_map:sorted_vector_map",
    ],
)
